<?php
/**
 * SocialEngine
 *
 * @category   Application_Extensions
 * @package    Blog
 * @copyright  Copyright 2006-2010 Webligo Developments
 * @license    http://www.socialengine.net/license/
 * @version    $Id: Style.php 7281 2010-09-03 03:46:33Z john $
 * @author     Jung
 */

/**
 * @category   Application_Extensions
 * @package    Blog
 * @copyright  Copyright 2006-2010 Webligo Developments
 * @license    http://www.socialengine.net/license/
 */
class Blog_Form_Style extends Engine_Form {
	public function init() {
		$this->setTitle ( 'Blog Styles' )->setMethod ( 'post' )->setAction ( Zend_Controller_Front::getInstance ()->getRouter ()->assemble ( array () ) )->setAttrib ( 'class', 'global_form_popup' );
		
		$this->removeDecorator ( 'FormWrapper' );
		
		// Element: style
		$this->addElement ( 'Textarea', 'style', array ('label' => 'Custom Blog Styles', 'description' => '_BLOG_FORM_STYLE_DESCRIPTION' ) );
		$this->style->getDecorator ( 'Description' )->setOption ( 'placement', 'APPEND' );
		
		// Element: submit
		$this->addElement ( 'Button', 'submit', array ('label' => 'Save Changes', 'type' => 'submit' ) );
		
		// Element: cancel
		$this->addElement ( 'Cancel', 'cancel', array ('label' => 'cancel', 'link' => true, 'href' => 'javascript:void(0);', 'prependText' => ' or ', 'onclick' => 'parent.Smoothbox.close();' ) );
		
		// DisplayGroup: buttons
		$this->addDisplayGroup ( array ('submit', 'cancel' ), 'buttons', array ()

		 );
		
		$this->addElement ( 'Hidden', 'id' );
	}
}